//
//  AccountAndSecurityViewController.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/28.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "AccountAndSecurityViewController.h"
#import "AccountSecurityViewModel.h"
#import "ChangeLoginPasswordViewController.h"

@interface AccountAndSecurityViewController ()
@property (nonatomic,strong) AccountSecurityViewModel * accountSecurityViewModel;
@end

@implementation AccountAndSecurityViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"账号与安全";
    self.accountSecurityViewModel = [[AccountSecurityViewModel alloc] initWithViewToViewModel:self.tableView theSuperView:self.view];
    kWeakSelf(self);
    self.accountSecurityViewModel.Block_Change = ^{
        ChangeLoginPasswordViewController * changeVc = [ChangeLoginPasswordViewController new];
        [weakself.navigationController pushViewController:changeVc animated:YES];
    };
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
